<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title></title>
</head>
<body erke-hide>
</body>
<script>
/**
 * @param {number} x
 * @param {number} y
 * @return {number}
 */
var hammingDistance = function(x, y) {
    var str1=x.toString(2);
    var str2=y.toString(2);
    var count=0;
    if(str1.length<str2.length){
   		var len=str2.length-str1.length;
    	for(var i=0;i<len;i++){
    		str1='0'+str1;
    	};
    }else if(str1.length>str2.length){
    	var len=str1.length-str2.length;
    	for(var i=0;i<len;i++){
    		str2='0'+str2;
    	};
    };
    for(var i=0;i<str1.length;i++){
    	if(str1[i]!=str2[i]){
    		count++;
    	};
    };
    return count;
};
var res=new hammingDistance(1501377268,258791155);
</script>
</html>